<?php
namespace app\admin\validate;
use think\Validate;

class User extends Validate
{
	protected $rule=[
		'username'=>'require|max:25',
		'password'=>'require|min:6',
		'username'=>'require|min:3',
	];
	
	protected $message=[
		'username.max'=>'用户名不能超过25位',
		'password.min'=>'密码不能小于6位',
		'username.min'=>'用户名不能小于3位',
	];
	
}

?>